﻿
namespace CDV.IRMS.WebAPI.TaskExecution.Interface
{
    /// <summary>
    /// 资源管理服务
    /// </summary>
    interface IResourceManagerService
    {
        /// <summary>
        /// 校验节点占用状态
        /// </summary>
        /// <param name="taskID">任务ID</param>
        /// <param name="routeID">路由ID</param>
        /// <param name="srcNodeID">源节点ID</param>
        /// <param name="destNodeID">目的节点ID</param>
        /// <returns>(占用状态，错误信息)</returns>
        (bool, string) HasNodeConflict(int taskID, int routeID, string srcNodeID, string destNodeID);
    }
}
